6.9
MEDIUM CVSS 4.0
CVE-2025-3047
Path Traversal in AWS SAM CLI allows file copy to build container
Description

When running the AWS Serverless Application Model Command Line Interface (SAM CLI) build process with Docker and symlinks are included in the build files, the container environment allows a user to access privileged files on the host by leveraging the elevated permissions granted to the tool. A user could leverage the elevated permissions to access restricted files via symlinks and copy them to a more permissive location on the container. Users should upgrade to v1.133.0 or newer and ensure any forked or derivative code is patched to incorporate the new fixes.

INFO

Published Date :

March 31, 2025, 4:15 p.m.

Last Modified :

April 1, 2025, 8:26 p.m.

Remotely Exploit :

Yes !

Source :

ff89ba41-3aa1-4d27-914a-91399e9639e5
Affected Products

The following products are affected by CVE-2025-3047 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM ff89ba41-3aa1-4d27-914a-91399e9639e5
CVSS 4.0 MEDIUM ff89ba41-3aa1-4d27-914a-91399e9639e5
Solution
Upgrade AWS SAM CLI to version 1.133.0 or newer to fix privilege escalation.
  • Upgrade AWS SAM CLI to version 1.133.0 or later.
  • Patch any forked or derivative code.
Public PoC/Exploit Available at Github

CVE-2025-3047 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-3047.

URL Resource
https://aws.amazon.com/security/security-bulletins/AWS-2025-008/
https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-3047 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Issue with AWS SAM CLI (CVE-2025-3047, CVE-2025-3048)

cve-2025-3047 cve-2025-3048

Updated: 4 months, 4 weeks ago
0 stars 0 fork 0 watcher
Born at : April 2, 2025, 2:28 p.m. This repo has been linked 2 different CVEs too.

None

HTML Python Shell

Updated: 2 months ago
0 stars 0 fork 0 watcher
Born at : Feb. 13, 2025, 8:50 a.m. This repo has been linked 891 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 17 hours, 32 minutes ago
7248 stars 1200 fork 1200 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 813 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-3047 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-3047 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by ff89ba41-3aa1-4d27-914a-91399e9639e5

    Mar. 31, 2025

    Action Type Old Value New Value
    Added Reference https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9
  • New CVE Received by ff89ba41-3aa1-4d27-914a-91399e9639e5

    Mar. 31, 2025

    Action Type Old Value New Value
    Added Description When running the AWS Serverless Application Model Command Line Interface (SAM CLI) build process with Docker and symlinks are included in the build files, the container environment allows a user to access privileged files on the host by leveraging the elevated permissions granted to the tool. A user could leverage the elevated permissions to access restricted files via symlinks and copy them to a more permissive location on the container. Users should upgrade to v1.133.0 or newer and ensure any forked or derivative code is patched to incorporate the new fixes.
    Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
    Added CWE CWE-22
    Added CWE CWE-497
    Added Reference https://aws.amazon.com/security/security-bulletins/AWS-2025-008/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 6.9
Attack Vector
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
VS Confidentiality
VS Integrity
VS Availability
SS Confidentiality
SS Integrity
SS Availability
Base CVSS Score: 6.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact